<table>
	<form action="/tournament/modify-action" method="post">
		<input type="hidden" name="tournament_id" value="{$tournament_id}">
		<tr>
			<td>
				Nume
			</td>
			<td>
				<input type="text" name="nume" value="{$tournament.Name}">
			</td>
		</tr>
		<tr>
			<td>
				Registration fee
			</td>
			<td>
				<input type="text" name="registration_fee" value="{$tournament.Registration_fee}">
			</td>
		</tr>
		<tr>
			<td>
				Bet
			</td>
			<td>
				<input type="text" name="bet" value="{$tournament.Bet}">
			</td>
		</tr>
		<tr>
			<td>
				Start time
			</td>
			<td>
				<input type="text" name="start_time" value="{$tournament.Start_time}">
			</td>
		</tr>
		<tr>
			<td>
				Registration time
			</td>
			<td>
				<input type="text" name="registration_time" value="{$tournament.Registration_time}">
			</td>
		</tr>
		<tr>
			<td>
				Checkin counter time ( minutes )
			</td>
			<td>
				<input type="text" name="checkin" value="{$tournament.Checkin_counter_time}">
			</td>
		</tr>
		<tr>
			<td>
				Game
			</td>
			<td>
				<select name="game">
					{foreach from=$games_list item=g key=gv}
					<option value="{$g.Game_id}" {if $tournament.Id_game == $g.Game_id}selected=""{/if} >{$g.Name}</option>
					{/foreach}
				</select>
			</td>
		</tr>
		<tr>
			<td>
				Matchup format
			</td>
			<td>
				<select name="matchup">
					<option value="1" {if $tournament.Matchup_format == 1}selected=""{/if}>1x1</option>
					<option value="2" {if $tournament.Matchup_format == 2}selected=""{/if}>2x2</option>
					<option value="3" {if $tournament.Matchup_format == 3}selected=""{/if}>3x3</option>
					<option value="4" {if $tournament.Matchup_format == 4}selected=""{/if}>4x4</option>
					<option value="5" {if $tournament.Matchup_format == 5}selected=""{/if}>5x5</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>
				Max players
			</td>
			<td>
				<input type="text" name="players_max" value="{$tournament.Players_max}">
			</td>
		</tr>
		<tr>
			<td>
				Points min
			</td>
			<td>
				<input type="text" name="points_min" value="{$tournament.Points_min}">
			</td>
		</tr>		
		<tr>
			<td>
				Points max
			</td>
			<td>
				<input type="text" name="points_max" value="{$tournament.Points_max}">
			</td>
		</tr>
		<tr>
			<td>
				Details
			</td>
			<td>
				<textarea name="details">{$tournament.Details}</textarea>
			</td>
		</tr>				
		<tr>
			<td>
				<input type="submit" value="Modifica">
			</td>
		</tr>
	</form>
</table>